import { ResponseData } from '../types/common';
import { IPromiseData } from '../types/Ipromise';
import request from '../utils/request';

/**
 * 
{
  "statusCode": 200,
  "errorCode": null,
  "msg": "ok",
  "success": true,
  "data": {
    "receiveId": null,
    "id2": 2
  }
}
 */

export function getTest1(params: number): Promise<ResponseData<IPromiseData>> {
  return request.request({
    url: `/test/test1/${params}`,
    method: 'GET',
    // params,
  });
}

export function getTest2(params: number): Promise<ResponseData<IPromiseData>> {
  return request.request({
    url: `/test/test2/${params}`,
    method: 'GET',
    // params,
  });
}

export function getTest3(params: number): Promise<ResponseData<IPromiseData>> {
  return request.request({
    url: `/test/test3/${params}`,
    method: 'GET',
    // params,
  });
}
